#include "pch.h"

UniformCameraViewMatrixUpdateCallback::UniformCameraViewMatrixUpdateCallback(osg::Camera *camera)
	:mCamera(camera)
{

}

void UniformCameraViewMatrixUpdateCallback::operator()(osg::Uniform* uniform, osg::NodeVisitor* visitor)
{
	uniform->set(osg::Matrixf(mCamera->getViewMatrix()));
}